package com.suse.ecommerce.pojo;

import java.io.Serializable;
import java.util.Date;


public class Shopping implements Serializable {
    private Long shoppingId;

    private Long productId;

    private String title;

    private Integer num;

    private Long onePrice;

    private Long totalPrice;

    private Integer userId;

    private Date createTime;

    private Date updateTime;

    private String img;

    private static final long serialVersionUID = 1L;

    public Shopping(Long shoppingId, Long productId, String title, Integer num, Long onePrice, Long totalPrice, Integer userId, Date createTime, Date updateTime, String img) {
        this.shoppingId = shoppingId;
        this.productId = productId;
        this.title = title;
        this.num = num;
        this.onePrice = onePrice;
        this.totalPrice = totalPrice;
        this.userId = userId;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.img = img;
    }


    public Shopping() {
        super();
    }

    public Long getShoppingId() {
        return shoppingId;
    }

    public void setShoppingId(Long shoppingId) {
        this.shoppingId = shoppingId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Long getOnePrice() {
        return onePrice;
    }

    public void setOnePrice(Long onePrice) {
        this.onePrice = onePrice;
    }

    public Long getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Long totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img == null ? null : img.trim();
    }
}